<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        function fun() {
            //验证表单是否合法，非法则阻止提交表单
            alert("表单上传，发现非法！");
            //return true;
            return false;
        }
    </script>
</head>
<body>
    <form action="http://localhost:8080" method="get" onsubmit="return fun()">
        <input type="submit" name="表单上传" value="静态注册"/>
    </form>
</body>
</html>